package com.ruoyi.bathrooms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bathrooms.mapper.BathroomsMapper;
import com.ruoyi.bathrooms.domain.Bathrooms;
import com.ruoyi.bathrooms.service.IBathroomsService;

/**
 * 房间卫所管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class BathroomsServiceImpl implements IBathroomsService 
{
    @Autowired
    private BathroomsMapper bathroomsMapper;

    /**
     * 查询房间卫所管理
     * 
     * @param bathroomId 房间卫所管理主键
     * @return 房间卫所管理
     */
    @Override
    public Bathrooms selectBathroomsByBathroomId(Long bathroomId)
    {
        return bathroomsMapper.selectBathroomsByBathroomId(bathroomId);
    }

    /**
     * 查询房间卫所管理列表
     * 
     * @param bathrooms 房间卫所管理
     * @return 房间卫所管理
     */
    @Override
    public List<Bathrooms> selectBathroomsList(Bathrooms bathrooms)
    {
        return bathroomsMapper.selectBathroomsList(bathrooms);
    }

    /**
     * 新增房间卫所管理
     * 
     * @param bathrooms 房间卫所管理
     * @return 结果
     */
    @Override
    public int insertBathrooms(Bathrooms bathrooms)
    {
        return bathroomsMapper.insertBathrooms(bathrooms);
    }

    /**
     * 修改房间卫所管理
     * 
     * @param bathrooms 房间卫所管理
     * @return 结果
     */
    @Override
    public int updateBathrooms(Bathrooms bathrooms)
    {
        return bathroomsMapper.updateBathrooms(bathrooms);
    }

    /**
     * 批量删除房间卫所管理
     * 
     * @param bathroomIds 需要删除的房间卫所管理主键
     * @return 结果
     */
    @Override
    public int deleteBathroomsByBathroomIds(Long[] bathroomIds)
    {
        return bathroomsMapper.deleteBathroomsByBathroomIds(bathroomIds);
    }

    /**
     * 删除房间卫所管理信息
     * 
     * @param bathroomId 房间卫所管理主键
     * @return 结果
     */
    @Override
    public int deleteBathroomsByBathroomId(Long bathroomId)
    {
        return bathroomsMapper.deleteBathroomsByBathroomId(bathroomId);
    }
}
